package com.own.business.message.center.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * MessageCenterContent
 *
 * @author chenxueli
 * @date 2023-11-13 14:39:27
 */
@Schema(title = "消息中心内容" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_message_center_content")
public class MessageCenterContent extends BasePo implements Serializable {

    /**
     * 接收消息的用户id
     */
    private Long fkReceiveId;

    /**
     * 消息内容（展示的一小部分）
     */
    private String content;

    /**
     * 消息详情内容（json格式字符串）
     */
    private String detailContent;

    /**
     * 分组key
     */
    @TableField(exist = false)
    private String groupKey;

    /**
     * 消息key
     */
    private String messageKey;

    /**
     * 业务id
     */
    private Long fkBusinessId;

    /**
     * 是否已读（0=未读 1=已读）
     */
    private Integer isRead;

    /**
     * 已读时间
     */
    private LocalDateTime readTime;

}
